/*
 * GameObjectHelper.java
 *
 * Created on 28. April 2007, 19:34
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor.util.helpers;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Charon
 */
public class EnemyHelper extends ExtensibleHelper implements Serializable{
    
    private String name = "";
    private SpriteHelper viewSprite = null;
    private SpriteHelper destructionSprite = null;
    private boolean isDestroyable = false;
    private boolean isTrackPlayer = false;
    private int maxHealth = 0;
    private int collisionDamage = 0;
    private List<EnemyWeaponHelper> weapons = null;
    
    /** Creates a new instance of GameObjectHelper */
    public EnemyHelper() {
        weapons = new LinkedList();
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public SpriteHelper getViewSprite() {
        return viewSprite;
    }
    
    public void setViewSprite(SpriteHelper viewSprite) {
        this.viewSprite = viewSprite;
    }
    
    public SpriteHelper getDestructionSprite() {
        return destructionSprite;
    }
    
    public void setDestructionSprite(SpriteHelper destructionSprite) {
        this.destructionSprite = destructionSprite;
    }
    
    public boolean isIsDestroyable() {
        return isDestroyable;
    }
    
    public void setIsDestroyable(boolean isDestroyable) {
        this.isDestroyable = isDestroyable;
    }
    
    public boolean isIsTrackPlayer() {
        return isTrackPlayer;
    }
    
    public void setIsTrackPlayer(boolean isTrackPlayer) {
        this.isTrackPlayer = isTrackPlayer;
    }
    
    public int getMaxHealth() {
        return maxHealth;
    }
    
    public void setMaxHealth(int maxHealth) {
        this.maxHealth = maxHealth;
    }
    
    public int getCollisionDamage() {
        return collisionDamage;
    }
    
    public void setCollisionDamage(int collisionDamage) {
        this.collisionDamage = collisionDamage;
    }
    
    public List<EnemyWeaponHelper> getWeapons() {
        return weapons;
    }
    
    public void setWeapons(List<EnemyWeaponHelper> weapons) {
        this.weapons = weapons;
    }
    
    public void addWeapon(EnemyWeaponHelper w){
        weapons.add(w);
    }
    
    public void removeWeapon(EnemyWeaponHelper w){
        weapons.remove(w);
    }
    
    public void clearWeapons(){
        weapons.clear();
    }
    
}
